home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_04
/
8n04135a
< prev
next >
Wrap
Text File
|
1990-03-18
|
1KB
|
31 lines
*****Listing 1*****
atan(), /* arc tangent */
sin(), /* sine */
atan2(), /* atan2(a,b) = arctan of a/b */
sinh(), /* hyperbolic sine */
cos(), /* cosine */
sqrt(), /* square root */
cosh(), /* hyperbolic cosine */
tan(), /* tangent */
exp(), /* exponential */
tanh(); /* hyperbolic tangent */
log(), /* natural logarithm */
pow(), /* pow(x,y) = x**y */
log10(), /* log base 10 */
float(x); double x; /* integer to floating point
conversion */
fmod(x,y); double x,y; /* mod(x,y) /
if 0 < y
then 0 <= mod(x,y) < y and
x = n*y + mod(x,y)
for some integer n */
fabs(x); double x; /* absolute value */
floor(x); double x; /* largest integer not greater
than */
ceil(x); double x; /* smallest integer not less than */
rand(); /* random number in range 0...1 */